package com.stylefeng.guns.modular.user_buy_device.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户购买设备数量信息表
 * </p>
 *
 * @author stylefeng
 * @since 2020-07-20
 */
@TableName("user_buy_device_info")
public class UserBuyDeviceInfo extends Model<UserBuyDeviceInfo> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 购买设备数量
     */
    @TableField("device_count")
    private Integer deviceCount;
    /**
     * 初次购买时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最新购买时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDeviceCount() {
        return deviceCount;
    }

    public void setDeviceCount(Integer deviceCount) {
        this.deviceCount = deviceCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserBuyDeviceInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", deviceCount=" + deviceCount +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
